﻿using System.ServiceModel;
using ServiceLibrary.Callbacks;

namespace ServiceLibrary
{
    [ServiceContract(CallbackContract = typeof(IPumpStationCallback))]
    public interface IPumpStationService
    {
        [OperationContract]
        int RegisterPumpStation(string ipAddress, int port, PumpDTO[] pumps);

        [OperationContract]
        void UpdateWaterlevel(int stationId, int waterlevel);

        [OperationContract]
        void SetPumpRunning(int stationId, int pumpIndex, bool running);
    }
}
